package com.base.vo.emr;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Date;

/**
 * 病历视图持久化对象
 */
public class HisCaseRecord {
    private Integer id;

    private String patientId;

    private Long visitId;

    private Date docDate;

    private String doctor;

    private String kind;

    private byte[] htmlContent;

    private String docxmlLobId;

    private String fileName;

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getDocxmlLobId() {
        return docxmlLobId;
    }

    public void setDocxmlLobId(String docxmlLobId) {
        this.docxmlLobId = docxmlLobId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId == null ? null : patientId.trim();
    }

    public Long getVisitId() {
        return visitId;
    }

    public void setVisitId(Long visitId) {
        this.visitId = visitId;
    }

    public Date getDocDate() {
        return docDate;
    }

    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    public String getDoctor() {
        return doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor == null ? null : doctor.trim();
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind == null ? null : kind.trim();
    }

    public byte[] getHtmlContent() {
        return htmlContent;
    }

    public void setHtmlContent(byte[] htmlContent) {
        this.htmlContent = htmlContent;
    }

    @Override
    public String toString() {
        return "HisCaseRecord{" +
                "id=" + id +
                ", patientId='" + patientId + '\'' +
                ", visitId=" + visitId +
                ", docDate=" + docDate +
                ", doctor='" + doctor + '\'' +
                ", kind='" + kind + '\'' +
                ", htmlContent=" + Arrays.toString(htmlContent) +
                ", docxmlLobId='" + docxmlLobId + '\'' +
                '}';
    }
}